<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<html>
    <head>
    <r:require module="easyui_core"/>               
    <r:layoutResources />
    <title>
        <g:layoutTitle default="活動預約後台"/>
    </title>
    <script type="text/javascript">
        jQuery.ajaxSetup({cache:false});//ajax不缓存
        jQuery(function($){
        });
        function setmain(title,href){
			$(".combo-panel").parent(".panel").remove(); //<span style="color: #0000ff;">清楚所有class为combo-panel的class为panel的父元素，解决combobox在页面缓存的问题</span>
        var centerURL = href;
        var centerTitle = title;
        $('body').layout('panel','center').panel({
        title:"所在位置："+centerTitle,
        href:centerURL
        });
        $('body').layout('panel','center').panel('refresh');
        return false;		
        }
        function showWindow(options){
        jQuery("#MyPopWindow").window(options);
        }
        function closeWindow(){
        $("#MyPopWindow").window('close');
        }
        //onclick="$.messager.alert('Warning','The warning message');"
    </script>	
    <g:layoutHead/>
</head>
<!-- easyui-layout 可分上下左右中五部分 -->
<body class="easyui-layout" id="mainBody">
<!-- 上 -->
    <div region="north" split="false" style="height:100px;text-align: center;" border="false">
        <h1>標題</h1>
    </div>
    <!-- 左-->
    <div class="menudiv" region="west" split="true" title="系統選單" style="width:200px;overflow:hidden;">
        <div id="menuDiv" class="easyui-accordion" fit="false" border="false" animate="false">
            <div title="用户管理">
                <ul>					
                    <g:link controller="events" action="create">新增場次</g:link>
                    </ul>	
                    <ul>					
                    <li id="rightLi" style="cursor: pointer;" 
                    onclick="setmain('用户管理','/user/list')" >用户管理</li>
                </ul>	
                <ul>					
                    <li id="rightLi" style="cursor: pointer;" 
                    onclick="setmain('用户管理','/user/list')" >用户管理</li>
                </ul>						
                <ul>					
                    <li id="rightLi" style="cursor: pointer;" 
                    onclick="$.messager.alert('Warning','The warning message');">彈出視窗</li>
                </ul>						
            </div>
            <div title="Title2" data-options="iconCls:'icon-reload',selected:true" style="padding:10px;overflow:hidden;">
                content2
            </div>                
        </div>
    </div>
    <!-- 中 -->
    <div region="center" class="maindiv" title="所在位置: 首页" style="overflow-x:hidden;padding: 0px;">
        <g:layoutBody/>
    </div>
    <div id="MyPopWindow" modal="true" shadow="false" minimizable="false" cache="false" maximizable="false" collapsible="false" resizable="false" style="margin: 0px;padding: 0px;overflow: auto;"></div>
</body>
</html>
